package com.zbkj.service.service;

import com.zbkj.common.model.city.CityRegionEntity;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.BrandRegion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.BrandRegionSaveRequest;
import com.zbkj.common.request.BrandRegionSearchRequest;
import com.zbkj.common.response.BrandRegionPageDataResponse;
import com.zbkj.common.response.BrandRegionDetailResponse;

import java.util.List;
/**
* @author Caiyc
* @description BrandRegionService 接口
* @date 2025-09-01
*/
public interface BrandRegionService extends IService<BrandRegion> {

    Boolean create(BrandRegionSaveRequest brandRegionSaveRequest);

    /**
     * 分页查询品牌商城市区域表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<BrandRegionPageDataResponse> getList(BrandRegionSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改品牌商城市区域表
    * @param brandRegionRequest
    * @return
    */
    boolean update(BrandRegionSaveRequest brandRegionRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    BrandRegionDetailResponse getDetails(Integer id);

    List<CityRegionEntity> findVillageList(String parentId, Integer level);
}